﻿namespace dotnet_notes.Controllers
{
    /// <summary>
    /// 工具管理
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ToolController : ControllerBase
    {
        /// <summary>
        /// 获取雪花 id
        /// </summary>
        [HttpGet]
        public IActionResult SnowflakeId()
        {
            return Ok(YitIdHelper.NextId());
        }

        /// <summary>
        /// 获取 Guid
        /// </summary>
        [HttpGet]
        public IActionResult Guid()
        {
            return Ok(System.Guid.NewGuid());
        }
    }
}
